const TOKEN_KEY = 'token';

export function getToken() {
  let token = localStorage.getItem(TOKEN_KEY);
  return token ? 'Bearer ' + token : null;
}

export function setToken( token: string | undefined ) {
  return token && localStorage.setItem(TOKEN_KEY, token);
}


export function removeToken() {
  return localStorage.removeItem(TOKEN_KEY);
}
